/**
 * @class refrigeratory.pn_south
 * @extends Ext.Panel
 *
 * 主界面下侧信息显示面板
 *
 * @author    Maple
 * @copyright (c) 2009, refrigeratory
 * @date      28. February 2011
 * @version   0.1
 * @revision  0.1
 *
 */

// create namespace
Ext.ns('refrigeratory');
refrigeratory.SITE_URL = '';

/**
 * Creates new refrigeratory.pn_south
 * @constructor
 * @param {Object} config A config object
 */
refrigeratory.pn_south = Ext.extend(Ext.Panel, {
    
    // {{{
    
    initComponent: function() {
        // hard coded config (it cannot be changed while instantiating)
        // {{{
        var config = {
            collapsible: true,
            items: this.createTxaDebug(),
            
		    id: 'pn_south',
		    title: this.titleText,
		    region: 'south',
		    height: 150,
		    minSize: 75,
		    maxSize: 250,
		    collapsed: true,
		    cmargins: '5 0 0 0'
        }; // eo config object

        // apply config
        Ext.apply(this, Ext.apply(this.initialConfig, config));
        // }}}

        // call parent
        refrigeratory.pn_south.superclass.initComponent.apply(this, arguments);

        // parent call post-processing, e.g. install event handlers

    } // eo function initComponent
    // }}}
    // {{{
    ,
    onRender: function() {

        // parent call pre-processing

        // call parent
        refrigeratory.pn_south.superclass.onRender.apply(this, arguments);

        // parent call post-processing, e.g. install event handlers on rendered components

    } // eo function onRender
    // }}}
    
    // 需被本地化的文本
    ,titleText: '操作说明'
    ,defaultDebugText: '此处显示调试信息\r\n'
    
    // private 生成调试信息显示文本域 this.txaDebug
    ,createTxaDebug: function(){
        this.txaDebug = new Ext.form.TextArea({
            id: 'txa_debug',
            width: 1000,
            height: 120,
            value: this.defaultDebugText
        });
        return this.txaDebug;
    }
}); // eo extend

// register xtype
Ext.reg('pn_south', refrigeratory.pn_south);
// eof
